import http from "@/utils/http/hub";


/**
 * H5检测是否能领取优惠券包
 */
export const couponWeb = (
	params,
	config = {
		custom: {
			loading: true,
		},
	}
) => {
	return http.post({
		url: `/couponCenter/couponWeb`,
		params,
		config,
	});
};

/**
 * H5领取优惠券包
 */
export const getCdkCoupon = (
	params,
	config = {
		custom: {
			loading: true,
		},
	}
) => {
	return http.post({
		url: `/couponCenter/getCdkCoupon`,
		params,
		config,
	});
};